package com.haiyi.activiti.engine.query.impl;

import com.haiyi.activiti.engine.model.entity.ComponentDesign;
import com.haiyi.activiti.engine.framework.database.AbstractQuery;
import com.haiyi.activiti.engine.query.ComponentDesignQuery;
import com.haiyi.activiti.engine.service.IComponentService;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/12/6 9:41 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class ComponentDesignQueryImpl extends AbstractQuery<ComponentDesignQuery, ComponentDesign, IComponentService> implements ComponentDesignQuery {

    private String iid;
    private String formObj;
    private String childId;
    private String type;
    private Date createTime;
    private Date createTimeBefore;
    private Date createTimeAfter;
    private Date updateTime;
    private Date updateTimeBefore;
    private Date updateTimeAfter;
    private String creater;
    private String updater;
    private String status;
    private String deleteFlag;

    @Override
    public ComponentDesignQuery iid(String iid) {
        this.iid = iid;
        return this;
    }

    @Override
    public ComponentDesignQuery formObj(String formObj) {
        this.formObj = formObj;
        return this;
    }

    @Override
    public ComponentDesignQuery childId(String childId) {
        this.childId = childId;
        return this;
    }

    @Override
    public ComponentDesignQuery type(String type) {
        this.type = type;
        return this;
    }

    @Override
    public ComponentDesignQuery createTime(Date date) {
        this.createTime = date;
        return this;
    }

    @Override
    public ComponentDesignQuery createTimeBefore(Date date) {
        this.createTimeBefore = date;
        return this;
    }

    @Override
    public ComponentDesignQuery createTimeAfter(Date date) {
        this.createTimeAfter = date;
        return this;
    }

    @Override
    public ComponentDesignQuery updateTime(Date date) {
        this.updateTime = date;
        return this;
    }

    @Override
    public ComponentDesignQuery updateTimeBefore(Date date) {
        this.updateTimeBefore = date;
        return this;
    }

    @Override
    public ComponentDesignQuery updateTimeAfter(Date date) {
        this.updateTimeAfter = date;
        return this;
    }

    @Override
    public ComponentDesignQuery creater(String creater) {
        this.creater = creater;
        return this;
    }

    @Override
    public ComponentDesignQuery updater(String updater) {
        this.updater = updater;
        return this;
    }

    @Override
    public ComponentDesignQuery status(String status) {
        this.status = status;
        return this;
    }

    @Override
    public ComponentDesignQuery deleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
        return this;
    }

    public String getIid() {
        return iid;
    }

    public String getFormObj() {
        return formObj;
    }

    public String getChildId() {
        return childId;
    }

    public String getType() {
        return type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Date getCreateTimeBefore() {
        return createTimeBefore;
    }

    public Date getCreateTimeAfter() {
        return createTimeAfter;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public Date getUpdateTimeBefore() {
        return updateTimeBefore;
    }

    public Date getUpdateTimeAfter() {
        return updateTimeAfter;
    }

    public String getCreater() {
        return creater;
    }

    public String getUpdater() {
        return updater;
    }

    public String getStatus() {
        return status;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }
}
